<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

function getGroupName($id){
	if($id == 0){
		return 'Žádná';
	}else{
	$query = $GLOBALS['db']->query("SELECT name FROM {prefix}users_groups WHERE id = '".intval($id)."'");
	$result = $query->fetch_array();
	return $result[0];
	}
}

?>